<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<style th:fragment="styles">
</style>
<div th:fragment="content">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>推送情况</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index?menuId=1">首页</a>
                </li>
                <li>
                    <a>消息</a>
                </li>
                <li class="active">
                    <strong>推送情况</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">

        </div>
    </div>
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-2">
                                <div class="form-group">
                                    <input type="text" id="search_userName" name="search_title" placeholder="用户名" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <div class="form-group">
                                    <input type="text" id="search_phone" name="search_title" placeholder="联系电话" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <div class="form-group">
                                    <input type="text" id="search_enterpriseName" name="search_title" placeholder="企业名称" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <div class="form-group">
                                    <select id='search_Status' name='search_Status' class="form-control">
                                        <option value="">请选择消息状态</option>
                                        <option value="0">未读</option>
                                        <option value="1">已读</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary  btn-rounded  btn-sm" id="search"
                                        onclick="doSearch()"><i
                                        class="fa fa-search"></i>&nbsp;搜索
                                </button>
                                <button type="submit" class="btn btn-warning  btn-rounded  btn-sm" id="refresh"
                                        onclick="doRest()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置
                                </button>
                            </div>
                        </div>

                        <div class="jqGrid_wrapper">
<!--                            <div class="btn-group-sm" id="toolbar" role="group">-->
<!--                                <a class="btn btn-success" name="AddNew" id="AddNew" data-toggle="modal"-->
<!--                                   data-target="#myModalAdd" onclick="addRecord();">-->
<!--                                    <i class="fa fa-plus"></i> 新增-->
<!--                                </a>-->
<!--                            </div>-->

                            <table class="table table-striped table-bordered table-hover " id="tableList">
                            </table>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">通知公告信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">
                                <div class="row">
                                    <label class="col-lg-2 control-label">公告id</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="number" id="text_nid" name="text_nid" placeholder="公告id"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">用户id</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="number" id="text_uid" name="text_uid" placeholder="用户id"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">状态：0未读，1已读</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="number" id="text_status" name="text_status"
                                                   placeholder="状态：0未读，1已读" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" onclick="saveRecord();"><i
                            class="fa fa-save"></i>&nbsp;提交
                    </button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>

    <div class="modal inmodal" id="myModalView" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="title"></h4>
                    <span id="publisher"></span>
                    <span id="publisheTime"></span>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">
                        <div id="myContent"></div>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <div class="row" id="showEnclosure" hidden>
                        <!--@*模态框body*@-->
                        <a download="" href="" style="float: left" id="downEnclosure">下载附件</a>
                        <!--模态框body结束-->
                    </div>
                    <button type="button"  name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>

    </div>

</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/news/newsPush.js}"></script>
    <!--表单验证-->
    <script th:src="@{/js/lib/validate/jquery.validate.min.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    NewsPush.init();
</script>
</html>
